package com.xjt.feignsentinel.controller;

import com.xjt.feignsentinel.service.FeignService;
//import com.xjt.feignsentinel.service.TestServicess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xu
 * @Description: TODO
 * @Date: 2021/11/14 22:40
 */
@RestController
@RequestMapping("feignSentinel")
public class FeignSentinelController
{

	@Autowired
	FeignService feignService;
//	@Autowired
//	TestServicess testServicess;

	@GetMapping("/test")
	public String test()
	{
		String test = feignService.test();
		return test;
	}
	@GetMapping("/test2")
	public String test2()
	{
		String test = feignService.test2();
		return test;
	}

//	@GetMapping("/test2")
//	public String test2()
//	{
//		System.out.println("aaaaaaaaaaa");
//		String test = testServicess.test2();
//		return test;
//	}
}
